/*************************************************************************  
 *   This file is part of UBBMPSREADER.
 *
 *   UBBMPSREADER is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   UBBMPSREADER is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with UBBMPSREADER.  If not, see <http://www.gnu.org/licenses/>. 
 *************************************************************************/

package cs.ubbcluj.ro.datatypes;

/**
 * Matrix interface
 * 
 * @author avadas
 * @version 1.0
 */
public interface Matrix {

    void newValue(int row, int column, double value);

    double get(int row, int column) throws InterruptedException;

    void set(int row, int column, double value) throws InterruptedException;

    int rowSize();

    int columnSize(int n);

    int rowIndex(int index);

    int columnIndex(int index);

    int size();

    Matrix product(double value, Matrix result);

    Matrix product(Matrix m, Matrix ered) throws InterruptedException;

    Vector product(Vector v, Vector ered) throws InterruptedException;

    Matrix sum(Matrix m, Matrix ered) throws InterruptedException;

    void scalarProductColumn(int i, double d);

    Matrix trans() throws InterruptedException;

    Matrix divElement(int n);

    void set(Matrix m);

}